package com.open.capacity.study.service;

import com.open.capacity.common.exception.service.ServiceException;
import com.open.capacity.common.model.SysTeaching;
import com.open.capacity.common.web.PageResult;
import com.open.capacity.common.web.Result;

import java.util.Map;

public interface TeachingSystemService {
    /**
     * 增加
     * @param sysTeaching
     * @return
     * @throws ServiceException
     */
    Result insert(SysTeaching sysTeaching) throws ServiceException;

    /**
     * 逻辑删除（修改可用状态）
     * @param params
     * @return
     */
    Result updateStatus(Map<String, Object> params) throws ServiceException;

    /**
     * 修改教学体系
     * @param sysTeaching
     * @return
     */
    Result update(SysTeaching sysTeaching) throws ServiceException;

    /**
     * 教学体系查询
     * @param params
     * @return
     */
    PageResult<SysTeaching> findTeaching(Map<String, Object> params) throws ServiceException;

    SysTeaching findById(Integer id) throws ServiceException;
}
